package exception;

public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始运行");
        try {
//            String str =null;
            String str = "wy";
            System.out.println(str.length());
            return;
        } catch (NullPointerException e) {
           e.printStackTrace();
        }finally {
            System.out.println("finally代码块");
        }
        System.out.println("程序结束运行");
    }
}
